TGT = a.out
SUB_DIR = 1key_press 2jpgdecode 4get_netstatus 5get_serverip 6get_starttime 7media_play 8sendinfo 9lift_ui time_sync update_source boot_exec

$(TGT): $(SUB_DIR)

$(SUB_DIR):
	make -C $@

clean:
	for dir in $(SUB_DIR); do \
		make -C $$dir clean; \
	done

.PHONY: clean $(SUB_DIR)
